#!/usr/bin/python
# -*- coding: utf-8 -*-

from wtforms import Form, FileField
from flask_wtf.file import FileAllowed, FileRequired

class UploadForm(Form):
    # FileField 文件必须上传
    # FileAllowed 允许上传的类型
    image_file = FileField(validators=[FileRequired(), FileAllowed(['xls'])])
    # desc = StringField(validators=[InputRequired()])